<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
// +---------------------------------------------------------------------------
// | SWAN [ $_SWANBR_SLOGAN_$ ]
// +---------------------------------------------------------------------------
// | Copyright $_SWANBR_COPYRIGHT_$
// +---------------------------------------------------------------------------
// | Version  $_SWANBR_VERSION_$
// +---------------------------------------------------------------------------
// | Licensed ( $_SWANBR_LICENSED_URL_$ )
// +---------------------------------------------------------------------------
// | $_SWANBR_WEB_DOMAIN_$
// +---------------------------------------------------------------------------
 
/**
+------------------------------------------------------------------------------
* snmp类example
+------------------------------------------------------------------------------
* 
* @package sw_snmp
* @version $_SWANBR_VERSION_$
* @copyright $_SWANBR_COPYRIGHT_$
* @author $_SWANBR_AUTHOR_$ 
+------------------------------------------------------------------------------
*/

require_once 'core.php';

#require_once PATH_SWAN_LIB . 'sw_validate.class.php';

/*
+------------------------------------------------------------------
 * {{{ sw_snmp_version_one
+------------------------------------------------------------------
*/
require_once PATH_SWAN_LIB . 'snmp/sw_snmp_version_one.class.php';

$snmp = new sw_snmp_version_one();
$snmp->set_object_id('.1.3.6.1.4.1.2021.11.9.0')
	 ->set_host('192.168.56.133')
	 ->set_timeout(5)
	 ->set_community('public');
var_export($snmp->get_next());
var_export($snmp->get());

/* }}}
+------------------------------------------------------------------
 * {{{ output_xml 创建一个XML文件
+------------------------------------------------------------------
*/

#$create_xml = sw_xml::factory('output_xml');
#$create_xml->set_filename('output_test.xml');
#var_dump($create_xml->output_xml($arr));
/* }}}
+------------------------------------------------------------------
 * 
+------------------------------------------------------------------
*/


